package org.spiderflow.common.concurrent;

import org.spiderflow.common.model.SpiderNode;

import java.util.Comparator;

/**
 * @author zsh
 */
public interface ThreadSubmitStrategy {

    Comparator<SpiderNode> comparator();

    void add(SpiderFutureTask<?> task);

    boolean isEmpty();

    @SuppressWarnings("java:S1452")
    SpiderFutureTask<?> get();
}
